package com.liang.blog.reception.service;

import com.liang.blog.model.BlogArticle;
import com.liang.blog.vo.article.ArticleInfoVo;
import com.liang.blog.vo.article.BlobCommentsVO;

import java.util.List;
import java.util.Map;

/**
 * @Author：YanWenLiang
 * @Date:2023-09-20-8:52
 */
public interface BlogArticleService {

    /**
     * 通过 id 获取文章信息
     * @return
     */
    ArticleInfoVo getArticleById(Long id);

    /**
     * 添加文章
     * @param articleInfoVo
     * @return
     */
    Boolean addArticle(ArticleInfoVo articleInfoVo);

    /**
     * 获取文章内容
     * @param articleInfoVo
     * @return
     */
    List<ArticleInfoVo> getArticleList(ArticleInfoVo articleInfoVo);

    /**
     * 添加评论
     * @param blobCommentsVO
     * @return
     */
    Boolean addArticleComments(BlobCommentsVO blobCommentsVO);

    /**
     * 获取评论
     * @param articleId
     * @return
     */
    Map<String, Object> getArticleComments(Long articleId);

    Boolean deleteByIds(List<String> idList);
}
